package com.eds;


import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(scanBasePackages = "com.eds") // 扫描当前包及子包
@EnableDiscoveryClient // 启用服务注册与发现
@EnableFeignClients(basePackages = "com.eds.feign") //  启用feign
@EnableDistributedTransaction // 启用分布式事务
@EnableScheduling  // 启用调度任务
@EnableCaching     // 启用缓存
@EnableAsync       // 启用异步处理
public class RobotApplication {
    public static void main(String[] args) {
        SpringApplication.run(RobotApplication.class, args);
    }
}